﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Battle.Net;
using Battle.Net.Managers;
using Battle.Net.Model;
using NUnit.Framework;

namespace Aesha.wow.Api.Tests
{
    [TestFixture]
    public class CharacterTests
    {
        public BattleNetConnection Connection { get; set; }

        [TestFixtureSetUp]
        public void Setup()
        {
            Connection = new BattleNetConnection(Host.Europe, Locale.en_GB) {UseCache = false};
        }

        [Test]
        public void GetCharacter()
        {
            var options = new CharacterOptions();
            options.Add(CharacterField.Guild);
            options.Add(CharacterField.Items);
            options.Add(CharacterField.Progression);

            var character = Connection.Characters.GetCharacter("arathor", "Mínistry", options);
            Assert.IsTrue(character.Name == "Mínistry");
        }


    }
}
